var constants = require('../constants');

module.exports.addTodo = function (val) {
    return {
        type: constants.ADD_TODO,
        val: val
    }
};



module.exports.destroyTodo = item => {
    return {
        type: constants.DESTORY_TODO,
        val: val
    }
}